package com.test.updater.fsm;

import java.lang.ref.WeakReference;

/**
 * Created by lmy on 2015/8/10.
 */
public abstract class FSMState {

    protected int mTag;
    protected WeakReference<FSMMachine> mFsmMachine;

    public FSMState(int tag, FSMMachine fsmMachine) {
        mTag = tag;
        mFsmMachine = new WeakReference<FSMMachine>(fsmMachine);
    }

    public abstract void enter(Parameter parameter) throws FSMException;

    public abstract void exit();

}
